package com.atguigu.gulimall.cart.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @title: ThreadPoolConfigProperties
 * @Author syh
 * @Date: 2022/7/5 17:11
 * @Version 1.0
 */

@ConfigurationProperties(prefix = "gulimall.thread")
@Component
@Data
public class ThreadPoolConfigProperties {
    /**
     * 核心线程大小
     */
    private Integer coreSize;
    /**
     * 最大线程数量
     */
    private Integer maxSize;
    /**
     * 最大休眠时长
     */
    private Integer keepAliveTime;
}
